package com.web.dto;

import java.io.Serializable;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

/**
* @author yangguanzan
* @date 2020-10-19
* @description
*/
public class UserInfoDTO implements Serializable {

    private static final long serialVersionUID = 2176859564503162717L;
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 昵称
     */
    @NotEmpty
    private String nickName;
    /**
     * 头像链接
     */
    private String avatarUrl;

    /**
     * 创建时间
     */
    private Date createdDt;

    public Date getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
            "id=" + id +
            ", nickName='" + nickName + '\'' +
            ", avatarUrl='" + avatarUrl + '\'' +
            '}';
    }
}
